package com.vicene.gmail.auth.feign;

import com.vicene.gmail.auth.vo.UserLoginVo;
import com.vicene.gmail.auth.vo.UserRegistVo;
import com.vicene.gmail.auth.weibo.WeiBoAuth;
import com.vicene.gmail.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gmail-member")
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);


    @PostMapping("/member/member/oauth/login")
    R oauthLogin(@RequestBody WeiBoAuth vo);
}
